package com.neuedu.model.service;

import java.util.List;

import org.springframework.web.multipart.MultipartFile;

import com.neuedu.model.po.Activity;
import com.neuedu.model.po.Candidate;
import com.neuedu.model.po.Lw;
import com.neuedu.model.po.Prize;

public interface VoteService {

	public Activity selectActivityById(int aid) throws Exception;
	
	public List<Candidate> selectCandidate(int aid,int pageNum,int pageSize);
	
	public List<Candidate> selectCandidateByName(String cname);
	
	public void saveCandidate(Candidate candidate, MultipartFile[] upload, String uploadpath);
	
	public Candidate selectCandidateById(int cid);
	
	public void updateCandidate(int aid,int cid);
	
	public boolean canVote(int aid);
	
	public void updateCandidateVoteInfo(int aid,int cid,String openid);
	
	public List<Candidate> selectCandidateRank(int aid);
	
	public List<Prize> selectPrizeByAid(int aid);
	
	public List<Lw> selectAllLw();
	
	public void updateCandidateGifts(int aid,int cid,int lwid,int lwcount,String openid);
}
